package main

import (
	"hookrock/gosee"
	"log"
	"net/http"
)

func main() {
	engine := gosee.Default()

	engine.GET("/panic", func(c *gosee.Context) {
		names := []string{"geektutu"}
		c.String(http.StatusOK, names[100])
	})
	// 启动服务
	if err := engine.Run(":8080"); err != nil {
		log.Fatal("服务器启动失败: ", err)
	}
}
